package org.lex.dbq.util;

import org.lex.dbq.exception.ValidateException;
import org.lex.string.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Validator {
	private Logger log = LoggerFactory.getLogger(Validator.class);

	public void notEmpty(String str, String message) throws ValidateException {
		if (StringUtils.isNullOrTrimEmpty(str)) {
			throw new ValidateException(message);
		}
	}
}
